<SCRIPT LANGUAGE="JavaScript">
<!--

function f_calCosttax(){
	var tax_rate =1+ document.all("finance_provider_detail.tax_rate").value/100;
  //  alert(tax_rate);
    document.all("finance_provider_detail.price_cost").value = (document.all("finance_provider_detail.price_cost_tax").value/tax_rate).toFixed(6);
	document.all("finance_provider_detail.totle_cost_tax").value = (document.all("finance_provider_detail.qty_process").value*document.all("finance_provider_detail.price_cost_tax").value).toFixed(2);
	document.all("finance_provider_detail.totle_cost_notax").value = (document.all("finance_provider_detail.qty_process").value*document.all("finance_provider_detail.price_cost").value).toFixed(2);
    document.all("finance_provider_detail.tax_cost").value =(document.all("finance_provider_detail.totle_cost_tax").value-document.all("finance_provider_detail.totle_cost_notax").value).toFixed(2);
}

function f_calCost(){
	var tax_rate =1+ document.all("finance_provider_detail.tax_rate").value/100;
  //  alert(tax_rate);
    document.all("finance_provider_detail.price_cost_tax").value = (document.all("finance_provider_detail.price_cost").value*tax_rate).toFixed(6);
	document.all("finance_provider_detail.totle_cost_tax").value = (document.all("finance_provider_detail.qty_process").value*document.all("finance_provider_detail.price_cost_tax").value).toFixed(2);
	document.all("finance_provider_detail.totle_cost_notax").value = (document.all("finance_provider_detail.qty_process").value*document.all("finance_provider_detail.price_cost").value).toFixed(2);
    document.all("finance_provider_detail.tax_cost").value =(document.all("finance_provider_detail.totle_cost_tax").value-document.all("finance_provider_detail.totle_cost_notax").value).toFixed(2);
}

//-->
</SCRIPT>


